<template>
	<div class="page-header col-xs-offset-2 col-xs-8">
		<h2>Vue路由测试</h2>
		<button @click="tuixiaba">←后退</button>
		<button @click="zouni">前进→</button>
		<button @click="test">测试一下go</button>
	</div>
</template>

<script>
	export default {
		name: 'Header',
		methods: {
			tuixiaba(){
				this.$router.back()
			},
			zouni(){
				this.$router.forward()
			},
			test(){
				this.$router.go(-3)
			}
		},		
	}
</script>